package com.woniu.his.service.impl;

import com.woniu.his.entity.DocterInfo;
import com.woniu.his.dao.DocterInfoMapper;
import com.woniu.his.service.IDocterInfoService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.validation.Valid;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author TATO
 * @since 2019-11-25
 */
@Service
public class DocterInfoServiceImpl extends ServiceImpl<DocterInfoMapper, DocterInfo> implements IDocterInfoService {

    @Autowired
    private DocterInfoMapper mapper;

    @Override
    public List<DocterInfo> findDoctersBySectionId(@Valid int sectionId) {
        return mapper.findDoctersBySectionId(sectionId);
    }
}
